<!--
 * @Author: Haochen
 * @Date: 2021-12-15 11:05:24
 * @LastEditTime: 2021-12-26 16:43:41
 * @FilePath: \recipes-admin-system\src\views\charts\Charts.vue
-->
<template>
  <div class="charts">
    <h2>数据看板</h2>
    <el-row :gutter="15" class="row-bg">
      <el-col :span="12"
        ><div class="grid-content bg-purple">
          <menu-views-count /></div
      ></el-col>
      <el-col :span="12"
        ><div class="grid-content bg-purple">
          <vip-members-ratio /></div
      ></el-col>
    </el-row>
  </div>
</template>

<script>
import MenuViewsCount from '../../components/charts/MenuViewsCount.vue';
import VipMembersRatio from '../../components/charts/VipMembersRatio.vue';

export default {
  components: {
    'menu-views-count': MenuViewsCount,
    'vip-members-ratio': VipMembersRatio,
  },
};
</script>

<style scoped lang="scss">
.charts {
  width: 100%;
  height: fit-content;
}
.el-row {
  margin-bottom: 20px;
  &:last-child {
    margin-bottom: 0;
  }
}
.el-col {
  border-radius: 4px;
}
.bg-purple-dark {
  background: #f4f7fc;
  box-shadow: $vue-box-shadow-header;
}
.bg-purple {
  background: #f4f7fc;
  // box-shadow: $vue-box-shadow-common;
  box-shadow: $vue-box-shadow-header;
}
.bg-purple-light {
  background: #f4f7fc;
  // box-shadow: $vue-box-shadow-common;
  box-shadow: $vue-box-shadow-header;
}
.grid-content {
  border-radius: 4px;
  min-height: 450px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}
.row-bg {
  padding: 10px 0;
  background-color: #f9fafc;
}
</style>
